package com.zhupanlin.zhyl.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/11/27 21:49
 */
@FeignClient("service-cmn")
@Service
public interface DictFeignClient {

    // 根据 dictCode 和 value 查询
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode,
                          @PathVariable("value") String value);

    // 根据 value 查询
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);

}
